package com.servlets;

import java.util.*;
import java.util.Map;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.developlibrary.search.*;

public class Search extends HttpServlet{
	public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException,ServletException{
		PrintWriter out = resp.getWriter();
		String[] l= {"cntitle","cncontent"};

		WLCN_IndexQuery wlcn_index = new WLCN_IndexQuery();
		wlcn_index.setCondition(req.getParameterMap());
		String q = wlcn_index.get(l);
		out.println("Out from servlet:"+q);
	
	}

	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException,ServletException{
		doPost(req,resp);
	}
}
